package com.jiangyg.mall.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 类描述：系统部门表实体
 *
 * @author jiangyg
 * @version 2.0
 * @date 2020-07-29
 */
@Data
@NoArgsConstructor
@TableName("t_sys_depart")
@EqualsAndHashCode(callSuper = true)
public class Depart extends BaseEntity {

    private static final long serialVersionUID = -6482436562654756981L;

    /**
     * 部门ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 父级部门ID
     */
    @TableField("pid")
    private Long pid;

    /**
     * 部门代码
     */
    @TableField("code")
    private String code;

    /**
     * 部门名称
     */
    @TableField("name")
    private String name;

    /**
     * 排序
     */
    @TableField("sort")
    private Integer sort;

    /**
     * 备注
     */
    @TableField("description")
    private String description;

}
